#ifndef VM_SWAP_H
#define VM_SWAP_H

#include "vm/page.h"
#define FACTOR ((PGSIZE)/(DISK_SECTOR_SIZE))
struct disk *swap_disk ;
int swap_n;

struct bitmap *swap_bitmap;

struct lock swap_lock;

void swap_init(void);
int swap_position_find(void);

bool swap_out(struct page *);
bool swap_in(struct page *);
void swap_remove_page(struct page *);
#endif
